package com.hualan.mapper;

import com.hualan.pojo.Feedback;
import com.hualan.pojo.Questions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author xcj
* @description 针对表【feedback】的数据库操作Mapper
* @createDate 2025-04-27 21:51:42
* @Entity com.hualan.pojo.Feedback
*/
@Mapper
public interface FeedbackMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Feedback record);

    int insertSelective(Feedback record);

    Feedback selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Feedback record);

    int updateByPrimaryKey(Feedback record);

    List<Feedback> selectFeedbackWithConsultantByQuesId(@Param("quesId") Integer quesId);

    List<Feedback> selectAllFeedback();
    //批量删除回复
    int batchDelete(@Param("ids") List<Long> ids);

    List<Feedback> searchByContent(@Param("content") String content);
}
